<template>
  <van-nav-bar :title="title" fixed left-arrow @click-left="onClickLeft" />
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
defineProps<{
  title: string;
}>();
const rouetr = useRouter();
const onClickLeft = () => {
  rouetr.go(-1);
};
</script>

<style scoped lang="scss">
.van-nav-bar {
  background-color: #e93323;
  color: #fff;
  :deep .van-nav-bar__title {
    color: #fff;
  }
  :deep .van-badge__wrapper {
    color: #fff;
    font-size: 18px;
  }
}
</style>
